
<script type="text/javascript" src="/static/laydate/laydate.js"></script>
<script type="text/javascript">

    $(function(){
            laydate({
                elem: '#demo1'
            });
             laydate({
                elem: '#demo2'
            });
        })

    function checktime()
    {
        //检测时间
        var start_time = $('.start_time').val();
        var end_time = $('.end_time').val();
        if(start_time>end_time){
            alert('开始时间不能大于结束时间');
            return;
        }
        $('form').submit();
    }
</script>
 <!-- 内容区域 -->
<div class="tpl-content-wrapper">
    <div class="row-content am-cf">
  <div class="row">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <div class="widget-head am-cf">
                <div class="widget-title am-fl">待出货数据列表</div>
                <div class="widget-function am-fr">
                    <a href="javascript:;" class="am-icon-cog"></a>
                </div>
            </div>
            <br>
            <form action="" method="get" name="form" class="am-form">
             <!--    <div class="am-u-sm-12 am-u-md-12 am-u-lg-7">
                 <div class="am-form-group tpl-table-list-select">
                      <div class="am-u-sm-12 am-u-md-12 am-u-lg-6">                                              
                         <label  class="am-u-sm-5 am-form-label">开始时间 </label>
                         <div class="am-u-sm-7">
                             <input type="text" id='demo1' class='start_time' name='start_time' value="<?php echo isset($_GET['start_time']) ? $_GET['start_time'] : date('Y-m-d')?>" readonly>
                         </div>
                      </div>
                      <div class="am-u-sm-12 am-u-md-12 am-u-lg-6">
                         <label  class="am-u-sm-5 am-form-label">结束时间：</label>
                         <div class="am-u-sm-7">
                             <input type="text" id='demo2' class='end_time' name='end_time' value="<?php echo isset($_GET['end_time']) ? $_GET['end_time'] : date('Y-m-d')?>" readonly>
                         </div>
                     </div>
                 </div>
             </div> -->
           
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">                                
                    <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">                                        
                      <!--   <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field " onclick='checktime()' type="button">搜索</button> -->
                        &nbsp;
                        <a href="/admin/order/shipments?export=1"><button class="am-btn  am-btn-default am-btn-success tpl-table-list-field"  type="button">导出</button></a>
                    </div>
                </div>
            </form>
             <div class="am-u-sm-12">
                <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                    <thead>
                        <tr>
                          <th>单号</th>
                          <th>姓名</th>
                          <th>电话</th>
                          <th>详细地址</th>
                          <th>订单明细</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($data as $k => $v) :?>
                        <tr class="gradeX">
                          <td class="am-text-middle"><?php echo $v['order_id']?></td>
                          <td class="am-text-middle"><?php echo $v['username']?></td>
                          <td class="am-text-middle"><?php echo $v['mobile']?></td>
                          <td class="am-text-middle"><?php echo $v['address']?></td>
                          <td class="am-text-middle"><?php echo $v['det']?></td>
                        </tr>
                    <?php endforeach;?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</div>
</div>
</body>
</html>

